#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time       : 2025/8/7 14:19
# @Author     : cfg
# @File       : game_variable.py
# @Software   : PyCharm
# @Description: The description of this file.
from typing import List

from sprites.bean import Bean
from sprites.role.snake import Snake
from sprites.wall import Wall


class GameVariable:
    home_page: str = "HOME_PAGE"
    game_page: str = "GAME_PAGE"
    pause_page: str = "PAUSE_PAGE"
    died_page: str = "DIED_PAGE"
    success_page: str = "SUCCESS_PAGE"
    readme_page: str = "README_PAGE"

    current_page = home_page
    current_level: int = 1
    max_level = 10
    level1_pass_score = 30
    level2_pass_score = 30
    level3_pass_score = 40

    home_cursor_line: int = 1
    pause_cursor_line: int = 1
    success_cursor_line: int = 1
    died_cursor_line: int = 1

    home_menu_num = 4

    tick = 40
    player_num: int = 1
    players: List[Snake] = []
    beans: List[Bean] = []
    walls: List[Wall] = []

    player1_score: int = 0
    player2_score: int = 0

    paused: bool = False
    exited: bool = False

    current_message = ""

    saved_datas = []


